<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $GLOBALS['_vars']['spacename'];  echo $GLOBALS['_vars']['curtitle']; ?></title>
<meta name="author" content="<?php echo $GLOBALS['_vars']['uname']; ?>"/>
<link href="../../../templets/23ps/style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../../templets/23ps/js/jquery.js"></script>
<script type="text/javascript" src="../../../templets/23ps/js/functions.js"></script>
</head>
<body>
<!-- header -->
    <div class="pngfix header">
        <h1 class="logo"><a href="/index.html" title="返回'图片处理教程网'首页"><img src="../../templets/23ps/img/logo.png" height="47" width="128" alt="图片处理教程网" /></a></h1>
        <div class="topbar">

<?php
//未登录显示的head
if(!$cfg_ml->IsLogin()) {
?>

<span id="_userlogintop">
    <a href="/member/index_do.php?fmdo=user&dopost=regnew">免费注册</a>┊
    <a href="/member/login.php">登录网站</a>
</span>┊
<script language="javascript" type="text/javascript">CheckTopLogin();</script>
<a href="#">帮助中心</a>┊
<a href="#" class="rss">订阅RSS</a>

<?php
}
//登录后显示的head
else {
?>
            <a href="/index.html" title="返回23PS首页">网站主页</a>┊
            <a href="<?php echo $myurl; ?>" title="我的个人空间" target="_blank">我的个人空间</a>┊
            <a href="#">帮助中心</a>┊
            <a href="#" class="rss">订阅RSS</a>

            <span id="loginInfo" class="loginInfo">
            <script type="text/javascript">
                var now=(new Date()).getHours();
                if(now>0&&now<=6){
                    document.write("午夜好，");
                }else if(now>6&&now<=11){
                    document.write("早上好，");
                }else if(now>11&&now<=14){
                    document.write("中午好，");
                }else if(now>14&&now<=18){
                    document.write("下午好，");
                }else{
                    document.write("晚上好，");
                }
            </script>
            <a href="#" class="userName"><?php echo $cfg_ml->M_UserName?></a> <a href="../member/index_do.php?fmdo=login&dopost=exit#">[退出]</a> 
            </span>
<?php
}
?>
        </div>
        <div id="navi" class="navi">
            <ul>
                <li class="home"><a href="/index.html" class="home">首页</a></li>
		      	<li class="submenu"><a href="/photoshop/cjjc">初级教程<img src="/templets/23ps/img/icon-submenu.png" style="margin: -2px 0 0 5px;position: absolute;"></a>
                    <ul class="submenu-box" style="display: none;">
                    <li><a href="/photoshop/cjjc/jichujiaocheng">基础教程</a></li><li><a href="/photoshop/cjjc/biankuangxiaoguo">边框效果</a></li><li><a href="/photoshop/cjjc/zitixiaoguo">字体效果</a></li><li><a href="/photoshop/cjjc/beijingjiaocheng">背景教程</a></li><li><a href="/photoshop/cjjc/feizhuliu">非主流</a></li><li><a href="/photoshop/cjjc/tuxiangxiaoguo">图像效果</a></li><li><a href="/photoshop/cjjc/mopimeibai">磨皮美白</a></li><li><a href="/photoshop/cjjc/koutujiqiao">抠图技巧</a></li><li><a href="/photoshop/cjjc/diaosejiqiao">调色技巧</a></li><li><a href="/photoshop/cjjc/taoqianjiaocheng">套签教程</a></li><li><a href="/photoshop/cjjc/xiutujiaocheng">修图教程</a></li><li><a href="/photoshop/cjjc/shuhuijiaocheng">鼠绘教程</a></li><li><a href="/photoshop/cjjc/shangsejiqiao">上色技巧</a></li><li><a href="/photoshop/cjjc/shipinjiaocheng">视频教程</a></li>
                    </ul>
                </li>
		      	<li class="submenu"><a href="/photoshop/tgjc">提高教程<img src="/templets/23ps/img/icon-submenu.png" style="margin: -2px 0 0 5px;position: absolute;"></a>
                    <ul class="submenu-box" style="display: none;">
                    <li><a href="/photoshop/tgjc/jichujiaocheng">基础教程</a></li><li><a href="/photoshop/tgjc/biankuangxiaoguo">边框效果</a></li><li><a href="/photoshop/tgjc/zitixiaoguo">字体效果</a></li><li><a href="/photoshop/tgjc/beijingjiaocheng">背景教程</a></li><li><a href="/photoshop/tgjc/feizhuliu">非主流</a></li><li><a href="/photoshop/tgjc/tuxiangxiaoguo">图像效果</a></li><li><a href="/photoshop/tgjc/mopimeibai">磨皮美白</a></li><li><a href="/photoshop/tgjc/koutujiqiao">抠图技巧</a></li><li><a href="/photoshop/tgjc/diaosejiqiao">调色技巧</a></li><li><a href="/photoshop/tgjc/taoqianjiaocheng">套签教程</a></li><li><a href="/photoshop/tgjc/xiutujiaocheng">修图教程</a></li><li><a href="/photoshop/tgjc/shuhuijiaocheng">鼠绘教程</a></li><li><a href="/photoshop/tgjc/shangsejiqiao">上色技巧</a></li><li><a href="/photoshop/tgjc/shipinjiaocheng">视频教程</a></li>
                    </ul>
                </li>
		      	<li class="submenu"><a href="/photoshop/gsjj">高手进阶<img src="/templets/23ps/img/icon-submenu.png" style="margin: -2px 0 0 5px;position: absolute;"></a>
                    <ul class="submenu-box" style="display: none;">
                    <li><a href="/photoshop/gsjj/jichujiaocheng">基础教程</a></li><li><a href="/photoshop/gsjj/shipinjiaocheng">视频教程</a></li><li><a href="/photoshop/gsjj/biankuangxiaoguo">边框效果</a></li><li><a href="/photoshop/gsjj/zitixiaoguo">字体效果</a></li><li><a href="/photoshop/gsjj/beijingjiaocheng">背景教程</a></li><li><a href="/photoshop/gsjj/feizhuliu">非主流</a></li><li><a href="/photoshop/gsjj/tuxiangxiaoguo">图像效果</a></li><li><a href="/photoshop/gsjj/mopimeibai">磨皮美白</a></li><li><a href="/photoshop/gsjj/koutujiqiao">抠图技巧</a></li><li><a href="/photoshop/gsjj/diaosejiqiao">调色技巧</a></li><li><a href="/photoshop/gsjj/taoqianjiaocheng">套签教程</a></li><li><a href="/photoshop/gsjj/xiutujiaocheng">修图教程</a></li><li><a href="/photoshop/gsjj/shangsejiqiao">上色技巧</a></li><li><a href="/photoshop/gsjj/shuhuijiaocheng">鼠绘教程</a></li>
                    </ul>
                </li>
                <li><a href="http://www.laifu.net/forum-14-1.html">PS问答</a></li>
                <li><a href="http://www.laifu.net/forum-27-1.html">PS作业</a></li>
                <li><a href="http://www.laifu.net/">PS论坛</a></li>
            </ul>
            <strong><a href="/member/article_add.php">有偿投稿</a></strong>
        </div>        
        <div class="search">
            <p>
                <label class="on" for="author">按作者</label>
                <label for="title">按标题</label>
                <label for="teacher">按老师</label>
            </p>
            <div class="form">
                <input class="text" type="text" />
                <input class="submit" type="submit" value="" />
            </div>
        </div>
    </div>
    <!-- header end -->